// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_CONTRACT_DETAIL
// * CreateDate    : 2011/9/27 11:24:18
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:18
// * LastChanger   : 2011/9/27 11:24:18
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class SalesContractDetailEntity : EntityBase
    {
        public SalesContractDetailTable TableSchema
        {
            get
            {
                return SalesContractDetailTable.Current;
            }
		}
		
		public SalesContractDetailEntity()
        {

        }
		
		public SalesContractDetailEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.OrderId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ID"]));
			this.QualityStandards = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_STANDARDS"]));
			this.ShelfLife = Convert.ToString(CommonFunctions.ToObject(dr["SHELF_LIFE"]));
			this.DeliveryPlace = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_PLACE"]));
			this.DeliveryWan = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_WAN"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedPlace = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PLACE"]));
			this.TransportWay = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_WAY"]));
			this.TransportWayOther = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_WAY_OTHER"]));
			this.TransportAmountPayWay = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_AMOUNT_PAY_WAY"]));
			this.PackageType = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_TYPE"]));
			this.PackageMaterialType = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_MATERIAL_TYPE"]));
			this.PackageAmountPayWay = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_AMOUNT_PAY_WAY"]));
			this.PaymentWay = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY"]));
			this.PaymentWay1 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_1"]));
			this.PaymentWay2 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_2"]));
			this.PaymentWay3 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_3"]));
			this.ControversyWay = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY"]));
			this.ControversyWay1 = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY_1"]));
			this.ControversyWay2 = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY_2"]));
			this.OtherRemark = Convert.ToString(CommonFunctions.ToObject(dr["OTHER_REMARK"]));
			this.CopyNumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_NUMBER"]));
			this.CopyANumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_A_NUMBER"]));
            this.CopyBNumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_B_NUMBER"]));
            this.AmountBigFormat = Convert.ToString(CommonFunctions.ToObject(dr["AMOUNT_BIG_FORMAT"]));
        }
		
		public SalesContractDetailEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.OrderId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ID"]));
			this.QualityStandards = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_STANDARDS"]));
			this.ShelfLife = Convert.ToString(CommonFunctions.ToObject(dr["SHELF_LIFE"]));
			this.DeliveryPlace = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_PLACE"]));
			this.DeliveryWan = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_WAN"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedPlace = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PLACE"]));
			this.TransportWay = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_WAY"]));
			this.TransportWayOther = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_WAY_OTHER"]));
			this.TransportAmountPayWay = Convert.ToString(CommonFunctions.ToObject(dr["TRANSPORT_AMOUNT_PAY_WAY"]));
			this.PackageType = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_TYPE"]));
			this.PackageMaterialType = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_MATERIAL_TYPE"]));
			this.PackageAmountPayWay = Convert.ToString(CommonFunctions.ToObject(dr["PACKAGE_AMOUNT_PAY_WAY"]));
			this.PaymentWay = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY"]));
			this.PaymentWay1 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_1"]));
			this.PaymentWay2 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_2"]));
			this.PaymentWay3 = Convert.ToString(CommonFunctions.ToObject(dr["PAYMENT_WAY_3"]));
			this.ControversyWay = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY"]));
			this.ControversyWay1 = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY_1"]));
			this.ControversyWay2 = Convert.ToString(CommonFunctions.ToObject(dr["CONTROVERSY_WAY_2"]));
			this.OtherRemark = Convert.ToString(CommonFunctions.ToObject(dr["OTHER_REMARK"]));
			this.CopyNumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_NUMBER"]));
			this.CopyANumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_A_NUMBER"]));
            this.CopyBNumber = Convert.ToInt32(CommonFunctions.ToObject(dr["COPY_B_NUMBER"]));
            this.AmountBigFormat = Convert.ToString(CommonFunctions.ToObject(dr["AMOUNT_BIG_FORMAT"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SalesContractDetailTable.Current;
            }
        }
		
		#region Perporty List
        public string OrderId
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_ORDER_ID)); }
            set { SetData(SalesContractDetailTable.C_ORDER_ID, value); }
        }
		
        public string QualityStandards
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_QUALITY_STANDARDS)); }
            set { SetData(SalesContractDetailTable.C_QUALITY_STANDARDS, value); }
        }
		
        public string ShelfLife
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_SHELF_LIFE)); }
            set { SetData(SalesContractDetailTable.C_SHELF_LIFE, value); }
        }
		
        public string DeliveryPlace
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_DELIVERY_PLACE)); }
            set { SetData(SalesContractDetailTable.C_DELIVERY_PLACE, value); }
        }
		
        public string DeliveryWan
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_DELIVERY_WAN)); }
            set { SetData(SalesContractDetailTable.C_DELIVERY_WAN, value); }
        }
		
        public string ReceivedPerson
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_RECEIVED_PERSON)); }
            set { SetData(SalesContractDetailTable.C_RECEIVED_PERSON, value); }
        }
		
        public string ReceivedPlace
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_RECEIVED_PLACE)); }
            set { SetData(SalesContractDetailTable.C_RECEIVED_PLACE, value); }
        }
		
        public string TransportWay
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_TRANSPORT_WAY)); }
            set { SetData(SalesContractDetailTable.C_TRANSPORT_WAY, value); }
        }
		
        public string TransportWayOther
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_TRANSPORT_WAY_OTHER)); }
            set { SetData(SalesContractDetailTable.C_TRANSPORT_WAY_OTHER, value); }
        }
		
        public string TransportAmountPayWay
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_TRANSPORT_AMOUNT_PAY_WAY)); }
            set { SetData(SalesContractDetailTable.C_TRANSPORT_AMOUNT_PAY_WAY, value); }
        }
		
        public string PackageType
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PACKAGE_TYPE)); }
            set { SetData(SalesContractDetailTable.C_PACKAGE_TYPE, value); }
        }
		
        public string PackageMaterialType
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PACKAGE_MATERIAL_TYPE)); }
            set { SetData(SalesContractDetailTable.C_PACKAGE_MATERIAL_TYPE, value); }
        }
		
        public string PackageAmountPayWay
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PACKAGE_AMOUNT_PAY_WAY)); }
            set { SetData(SalesContractDetailTable.C_PACKAGE_AMOUNT_PAY_WAY, value); }
        }
		
        public string PaymentWay
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PAYMENT_WAY)); }
            set { SetData(SalesContractDetailTable.C_PAYMENT_WAY, value); }
        }
		
        public string PaymentWay1
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PAYMENT_WAY_1)); }
            set { SetData(SalesContractDetailTable.C_PAYMENT_WAY_1, value); }
        }
		
        public string PaymentWay2
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PAYMENT_WAY_2)); }
            set { SetData(SalesContractDetailTable.C_PAYMENT_WAY_2, value); }
        }
		
        public string PaymentWay3
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_PAYMENT_WAY_3)); }
            set { SetData(SalesContractDetailTable.C_PAYMENT_WAY_3, value); }
        }
		
        public string ControversyWay
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_CONTROVERSY_WAY)); }
            set { SetData(SalesContractDetailTable.C_CONTROVERSY_WAY, value); }
        }
		
        public string ControversyWay1
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_CONTROVERSY_WAY_1)); }
            set { SetData(SalesContractDetailTable.C_CONTROVERSY_WAY_1, value); }
        }
		
        public string ControversyWay2
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_CONTROVERSY_WAY_2)); }
            set { SetData(SalesContractDetailTable.C_CONTROVERSY_WAY_2, value); }
        }
		
        public string OtherRemark
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_OTHER_REMARK)); }
            set { SetData(SalesContractDetailTable.C_OTHER_REMARK, value); }
        }
		
        public int CopyNumber
        {
            get { return Convert.ToInt32(GetData(SalesContractDetailTable.C_COPY_NUMBER)); }
            set { SetData(SalesContractDetailTable.C_COPY_NUMBER, value); }
        }
		
        public int CopyANumber
        {
            get { return Convert.ToInt32(GetData(SalesContractDetailTable.C_COPY_A_NUMBER)); }
            set { SetData(SalesContractDetailTable.C_COPY_A_NUMBER, value); }
        }
		
        public int CopyBNumber
        {
            get { return Convert.ToInt32(GetData(SalesContractDetailTable.C_COPY_B_NUMBER)); }
            set { SetData(SalesContractDetailTable.C_COPY_B_NUMBER, value); }
        }

        public string AmountBigFormat
        {
            get { return Convert.ToString(GetData(SalesContractDetailTable.C_AMOUNT_BIG_FORMAT)); }
            set { SetData(SalesContractDetailTable.C_AMOUNT_BIG_FORMAT, value); }
        }
		
		#endregion
	}
	
	
}	

